let lastEvent;
['click', 'touchstart', 'mousedown', 'keydown', 'mouseover'].forEach(eventType => {
    document.addEventListener(eventType,(event) =>{
        lastEvent = event;
    },{
        capture: true, //捕获阶段也监听
        passive: true //默认不阻止默认事件
    })
})

export default function () {
    return lastEvent
};